package com.jason.fingerprint.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.jason.fingerprint.ui.LauncherActivity;

/**
 * @ClassName:?LauncherReceiver
 * @Description:?广播自启动应用
 * @Author: Jason.Zhang zhangyujn1989ok@gmail.com
 * @Date: 2015-12-17 17:29:30
 */
public class LauncherReceiver extends BroadcastReceiver {

    private static final String TAG = LauncherReceiver.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {

        String action = intent.getAction();

        Log.i(TAG,">>>>>>>>> onReceive action:" + action);

        if ("android.intent.action.BOOT_COMPLETED".equals(action)){
//            Intent i = new Intent(context, LauncherActivity.class);
//            i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//            context.startActivity(i);
        }
    }
}
